from rest_framework import serializers
from apps.Basic_data.serializers import BasicSupplierSerializer as VendorSerializer,\
    BasicGoodsSerializer as ProductSerializer
from .models import SmartLocks, DefectiveStore, DefectiveStoreLocks, DefectiveStoreOutRecord, DefectiveStoreInRecord

class SmartLocksSerializer(serializers.ModelSerializer):
    class Meta:
        model = SmartLocks
        fields = '__all__'


class DefectiveStoreSerializer(serializers.ModelSerializer):
    class Meta:
        model = DefectiveStore
        fields = '__all__'


class DefectiveStoreLocksSerializer(serializers.ModelSerializer):
    class Meta:
        model = DefectiveStoreLocks
        fields = '__all__'


class DefectiveStoreOutRecordSerializer(serializers.ModelSerializer):
    class Meta:
        model = DefectiveStoreOutRecord
        fields = '__all__'


class DefectiveStoreInRecordSerializer(serializers.ModelSerializer):
    class Meta:
        model = DefectiveStoreInRecord
        fields = '__all__'




